var ajaxHelper = require("../../utils/ajaxhelp");
const serviceUrl = getApp().globalData.serviceUrl;
let token = wx.getStorageSync('token');

const userlogOut = (pwd = "") => {
	token = wx.getStorageSync('token');
	return ajaxHelper.promiseRequst(serviceUrl + "/api/User/LogOff", {
		'Authorization': 'Bearer ' + token
	}, "GET", {
		pwd: pwd
	})
}

module.exports = {
	userlogOut
}
